<?php
namespace  app\models;

class BaseModel {
	
	public static function pdo_con(){
		$host = 'localhost';
		$port = 3306;
		$dbname = 'sso';
		$user = 'root';
		$password = '';
		$dsn = "mysql:host={$host};port={$port};dbname={$dbname}";
		$options = array();
		$options += array(
				\PDO::MYSQL_ATTR_INIT_COMMAND => 'set names utf8',
		);
		return new \PDO($dsn, $user, $password, $options);
	}
}